<?
require_once("lang.php");

ob_start("callback");
$module		= getValue("module", "str", "GET", "");
if($module != "thankyou"){
	$urlModule		= generate_module_url($module);
}

// Tạo title
switch($module){
	case "intro": $con_site_title	= "Giới thiệu";
	break;
	case "contact": $con_site_title	= "Liên hệ";
	break;
	case "warranty": $con_site_title	= "Chính sách bảo hành";
	break;
	case "payment": $con_site_title	= "Phương thức thanh toán";
	break;
	case "support": $con_site_title	= "Chăm sóc khách hàng";
	break;
   case "register": $con_site_tite  = "Đăng ký thành viên";
   break;
   case "login":  $con_site_tite    =  "Đăng nhập";
   break;
}
						
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="<?=str_replace("\n", "", htmlspecialchars($con_meta_keywords))?>" />
<meta name="description" content="<?=str_replace("\n", "", htmlspecialchars($con_meta_description))?>" />
<link href="<?=$con_root_path?>css/standard/favicon.ico" rel="icon" type="image/x-icon" />
<link href="<?=$con_root_path?>css/standard/favicon.ico" rel="shortcut icon" />
<title><?=$con_site_title?></title>
<style type="text/css" media="all">@import "<?=$con_root_path?>css/FSmain.css";</style>
<style type="text/css" media="all">@import "<?=$con_root_path?>css/standard/FStheme.css";</style>
<style type="text/css" media="all">@import "<?=$con_root_path?>css/standard/FStemplate.css";</style>
</head>
<body>
<div id="body">
	<div id="container_body">
		<div id="container_body_wrapper">
			<div id="container_header"><? include($real_path . "includes/inc_header.php");?></div>
			<div id="container_content">
				<div id="container_content_center_center">
					<div class="container_content_center_center">
						<?
						switch($module){
							case "intro": include($real_path . "includes/inc_module_intro.php");
							break;
							case "contact": include($real_path . "includes/inc_module_contact.php");
							break;
							case "warranty": include($real_path . "includes/inc_module_warranty.php");
							break;
							case "payment": include($real_path . "includes/inc_module_payment.php");
							break;
							case "support": include($real_path . "includes/inc_module_support.php");
							break;
                     case "register": include($real_path. "includes/inc_module_register.php");
                     break;
                     case "login": include($real_path. "includes/inc_module_login.php");
                     break;
						}
						?>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div id="container_footer"><? include($real_path . "includes/inc_footer.php");?></div>
	</div>
</div>
</body>
</html>
<?
ob_end_flush();
?>